﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLM.Domain.Model;

namespace DLM.Services.BonusRule
{
    public class BonusRuleFactory
    {
        private static IBonusRuleService bonusRuleService;

        public static void InitBonusRuleFactory(IBonusRuleService ruleService)
        {
            bonusRuleService = ruleService;
        }

        public static DLM.Domain.Model.BonusRule GetBonusRuleService()
        {
            return bonusRuleService.GetRules();
        }

        public static void SetRuleService(DLM.Domain.Model.BonusRule rule)
        {
            bonusRuleService.SetRules(rule);
        }
    }
}
